load_timeout = gdk_threads_add_timeout (150,
progressive_timeout,
image);
+ g_source_set_name_by_id (load_timeout, "[gtk+] progressive_timeout");
}
static void
queue_flush (GdkWindow *window)
{
if (flush_id == 0)
- flush_id = gdk_threads_add_idle (flush_idle, NULL);
+ {
+ flush_id = gdk_threads_add_idle (flush_idle, NULL);
+ g_source_set_name_by_id (flush_id, "[gtk+] flush_idle");
+ }
}
static void
if (!toplevel->synthesize_crossing_event_queued)
{
+ guint id;
+
toplevel->synthesize_crossing_event_queued = TRUE;
- gdk_threads_add_idle_full (GDK_PRIORITY_EVENTS - 1,
- do_synthesize_crossing_event,
- g_object_ref (toplevel),
- g_object_unref);
+ id = gdk_threads_add_idle_full (GDK_PRIORITY_EVENTS - 1,
+ do_synthesize_crossing_event,
+ g_object_ref (toplevel),
+ g_object_unref);
+ g_source_set_name_by_id (id, "[gtk+] do_synthesize_crossing_event");
}
}
* yet, so we delay our refresh into an idle handler.
*/
if (!screen->screen_changed_id)
- screen->screen_changed_id = gdk_threads_add_idle (screen_changed_idle,
- screen);
+ {
+ screen->screen_changed_id = gdk_threads_add_idle (screen_changed_idle,
+ screen);
+ g_source_set_name_by_id (screen->screen_changed_id, "[gtk+] screen_changed_idle");
+ }
}
}
}
if (state->callback)
- gdk_threads_add_idle (callback_idle, state);
+ {
+ guint id;
+ id = gdk_threads_add_idle (callback_idle, state);
+ g_source_set_name_by_id (id, "[gtk+] callback_idle");
+ }
DeqAsyncHandler(state->dpy, &state->async);
if (state->callback)
- gdk_threads_add_idle (roundtrip_callback_idle, state);
+ {
+ guint id;
+ id = gdk_threads_add_idle (roundtrip_callback_idle, state);
+ g_source_set_name_by_id (id, "[gtk+] roundtrip_callback_idle");
+ }
DeqAsyncHandler(state->dpy, &state->async);
}
focus_notify_handler = gdk_threads_add_idle (gail_focus_idle_handler, widget);
+ g_source_set_name_by_id (focus_notify_handler, "[gtk+] gail_focus_idle_handler");
}
static gboolean
return FALSE;
if (!item->action_idle_handler)
- item->action_idle_handler = gdk_threads_add_idle (idle_do_action, item);
+ {
+ item->action_idle_handler = gdk_threads_add_idle (idle_do_action, item);
+ g_source_set_name_by_id (item->action_idle_handler, "[gtk+] idle_do_action");
+ }
return TRUE;
}
manager->private_data->update_tag = gdk_threads_add_idle (
(GSourceFunc)do_updates_idle,
manager);
+ g_source_set_name_by_id (manager->private_data->update_tag, "[gtk+] do_updates_idle");
}
GtkComboBoxPrivate *priv = combo_box->priv;
if (!priv->resize_idle_id)
- priv->resize_idle_id =
- gdk_threads_add_idle (list_popup_resize_idle, combo_box);
+ {
+ priv->resize_idle_id =
+ gdk_threads_add_idle (list_popup_resize_idle, combo_box);
+ g_source_set_name_by_id (priv->resize_idle_id, "[gtk+] list_popup_resize_idle");
+ }
}
static void
popdown_handler (GtkWidget *widget,
gpointer data)
{
- gdk_threads_add_idle (popdown_idle, g_object_ref (data));
+ guint id;
+ id = gdk_threads_add_idle (popdown_idle, g_object_ref (data));
+ g_source_set_name_by_id (id, "[gtk+] popdown_idle");
}
static gboolean
combo_box->priv->popup_idle_id =
gdk_threads_add_idle (popup_idle, combo_box);
+ g_source_set_name_by_id (combo_box->priv->popup_idle_id, "[gtk+] popup_idle");
}
}
* from the last move can catch up before we move again.
*/
if (!info->update_idle)
- info->update_idle = gdk_threads_add_idle_full (GDK_PRIORITY_REDRAW + 5,
- gtk_drag_update_idle,
- info,
- NULL);
+ {
+ info->update_idle = gdk_threads_add_idle_full (GDK_PRIORITY_REDRAW + 5,
+ gtk_drag_update_idle,
+ info,
+ NULL);
+ g_source_set_name_by_id (info->update_idle, "[gtk+] gtk_drag_update_idle");
+ }
}
/**
{
priv->recompute_idle = gdk_threads_add_idle_full (G_PRIORITY_HIGH_IDLE + 15, /* between resize and redraw */
recompute_idle_func, entry, NULL);
+ g_source_set_name_by_id (priv->recompute_idle, "[gtk+] recompute_idle_func");
}
}
recent_idle_load,
load_data,
recent_idle_cleanup);
+ g_source_set_name_by_id (priv->load_recent_id, "[gtk+] recent_idle_load");
}
static void
GtkIconThemePrivate *priv = icon_theme->priv;
if (!priv->theme_changed_idle)
- priv->theme_changed_idle =
- gdk_threads_add_idle_full (GTK_PRIORITY_RESIZE - 2,
- theme_changed_idle, icon_theme, NULL);
+ {
+ priv->theme_changed_idle =
+ gdk_threads_add_idle_full (GTK_PRIORITY_RESIZE - 2,
+ theme_changed_idle, icon_theme, NULL);
+ g_source_set_name_by_id (priv->theme_changed_idle, "[gtk+] theme_changed_idle");
+ }
}
static void
GtkPrintContext *context,
PreviewOp *pop)
{
+ guint id;
+
pop->print_context = context;
g_object_ref (preview);
- gdk_threads_add_idle_full (G_PRIORITY_DEFAULT_IDLE + 10,
- preview_print_idle,
- pop,
- preview_print_idle_done);
+ id = gdk_threads_add_idle_full (G_PRIORITY_DEFAULT_IDLE + 10,
+ preview_print_idle,
+ pop,
+ preview_print_idle_done);
+ g_source_set_name_by_id (id, "[gtk+] preview_print_idle");
}
print_pages_idle,
data,
print_pages_idle_done);
+ g_source_set_name_by_id (priv->print_pages_idle_id, "[gtk+] print_pages_idle");
/* Recursive main loop to make sure we don't exit on sync operations */
if (priv->is_sync)
priv->mark_conflicts_id = gdk_threads_add_idle (mark_conflicts_callback,
dialog);
+ g_source_set_name_by_id (priv->mark_conflicts_id, "[gtk+] mark_conflicts_callback");
}
static void
load_recent_items,
impl,
cleanup_after_load);
+ g_source_set_name_by_id (impl->priv->load_id, "[gtk+] load_recent_items");
}
/* taken form gtkfilechooserdialog.c */
idle_populate_func,
pdata,
idle_populate_clean_up);
+ g_source_set_name_by_id (priv->populate_id, "[gtk+] idle_populate_func");
}
/* bounce activate signal from the recent menu item widget
if (data->uri_hits)
{
+ guint id;
+
hits = g_new (SearchHits, 1);
hits->uris = data->uri_hits;
hits->thread_data = data;
- gdk_threads_add_idle (search_thread_add_hits_idle, hits);
+ id = gdk_threads_add_idle (search_thread_add_hits_idle, hits);
+ g_source_set_name_by_id (id, "[gtk+] search_thread_add_hits_idle");
}
data->uri_hits = NULL;
static gpointer
search_thread_func (gpointer user_data)
{
+ guint id;
+
#ifdef HAVE_FTW_H
SearchThreadData *data;
send_batch (data);
- gdk_threads_add_idle (search_thread_done_idle, data);
+ id = gdk_threads_add_idle (search_thread_done_idle, data);
+ g_source_set_name_by_id (id, "[gtk+] search_thread_done_idle");
#endif /* HAVE_FTW_H */
return NULL;
/* Use priority a little higher than GTK_TEXT_VIEW_PRIORITY_VALIDATE,
* so we don't wait until the entire buffer has been validated. */
if (!priv->im_spot_idle)
- priv->im_spot_idle = gdk_threads_add_idle_full (GTK_TEXT_VIEW_PRIORITY_VALIDATE - 1,
- do_update_im_spot_location,
- text_view,
- NULL);
+ {
+ priv->im_spot_idle = gdk_threads_add_idle_full (GTK_TEXT_VIEW_PRIORITY_VALIDATE - 1,
+ do_update_im_spot_location,
+ text_view,
+ NULL);
+ g_source_set_name_by_id (priv->im_spot_idle, "[gtk+] do_update_im_spot_location");
+ }
}
static void
if (!priv->first_validate_idle)
{
priv->first_validate_idle = gdk_threads_add_idle_full (GTK_PRIORITY_RESIZE - 2, first_validate_callback, text_view, NULL);
+ g_source_set_name_by_id (priv->first_validate_idle, "[gtk+] first_validate_callback");
DV (g_print (G_STRLOC": adding first validate idle %d\n",
priv->first_validate_idle));
}
if (!priv->incremental_validate_idle)
{
priv->incremental_validate_idle = gdk_threads_add_idle_full (GTK_TEXT_VIEW_PRIORITY_VALIDATE, incremental_validate_callback, text_view, NULL);
+ g_source_set_name_by_id (priv->incremental_validate_idle, "[gtk+] incremental_validate_callback");
DV (g_print (G_STRLOC": adding incremental validate idle %d\n",
priv->incremental_validate_idle));
}
priv->is_sliding = TRUE;
if (!priv->idle_id)
- priv->idle_id = gdk_threads_add_idle (slide_idle_handler, toolbar);
+ {
+ priv->idle_id = gdk_threads_add_idle (slide_idle_handler, toolbar);
+ g_source_set_name_by_id (priv->idle_id, "[gtk+] slide_idle_handler");
+ }
gtk_widget_get_allocation (widget, &allocation);
{
tree_view->priv->validate_rows_timer =
gdk_threads_add_idle_full (GTK_TREE_VIEW_PRIORITY_VALIDATE, (GSourceFunc) validate_rows, tree_view, NULL);
+ g_source_set_name_by_id (tree_view->priv->validate_rows_timer, "[gtk+] validate_rows");
}
}
{
tree_view->priv->scroll_sync_timer =
gdk_threads_add_idle_full (GTK_TREE_VIEW_PRIORITY_SCROLL_SYNC, (GSourceFunc) scroll_sync_handler, tree_view, NULL);
+ g_source_set_name_by_id (tree_view->priv->scroll_sync_timer, "[gtk+] scroll_sync_handler");
}
}
tooltip_query_displays = g_slist_prepend (tooltip_query_displays, g_object_ref (display));
if (tooltip_query_id == 0)
- tooltip_query_id = gdk_threads_add_idle (tooltip_query_idle, NULL);
+ {
+ tooltip_query_id = gdk_threads_add_idle (tooltip_query_idle, NULL);
+ g_source_set_name_by_id (tooltip_query_id, "[gtk+] tooltip_query_idle");
+ }
}
/**
return;
window->priv->delete_event_handler = gdk_threads_add_idle (send_delete_event, window);
+ g_source_set_name_by_id (window->priv->delete_event_handler, "[gtk+] send_delete_event");
}
static void
GtkWindowPrivate *priv = window->priv;
if (!priv->keys_changed_handler)
- priv->keys_changed_handler = gdk_threads_add_idle (handle_keys_changed, window);
+ {
+ priv->keys_changed_handler = gdk_threads_add_idle (handle_keys_changed, window);
+ g_source_set_name_by_id (priv->keys_changed_handler, "[gtk+] handle_keys_changed");
+ }
}
/**